package cn.zjutleo.village_server.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import javax.annotation.PostConstruct;

/**
 * @author : 张坤
 * @date : Created in 2021/11/14
 * @description: 用户行为日志配置类(埋点)
 */
@ConfigurationProperties("user-operation-log")
@Data
public class UserOperationLogConfig {
    /**
    * 日志输出格式
    */
    private String format;

    /**
    * 日志输出格式2
    */
    public static String FORMAT;

    @PostConstruct
    public void setFormat() {
        FORMAT = format;
    }
}
